﻿package 
{
	import flash.display.MovieClip;
	class Moves extends MovieClip 
	{
		var lvl:Number;
		var Exp:Number;
		var expNeeded:Number;
		var swingExp:Number;
		var hitExp:Number;
		var atkPwr:Number;
		var motion:String;
		var buttons:Array;
		function getLvl():Number
		{
			return lvl;
		}
		function getAtk():Number
		{
			return atkPwr;
		}
		function getExp():Number
		{
			return Exp;
		}
		function getExpNeeded():Number
		{
			return expNeeded;
		}
		//Adds swing exp and hits nothing
		function useSwingExp():Number
		{
			Exp+=swingExp;
		}
		//Adds swing exp and hit exp 
		function useHitExp():Number
		{
			Exp+=swingExp + hitExp
		}
		function lvlUp():void
		{
			lvl++;
			Exp = 0;
			calculateExpNeeded();
		}
		function calculateExpNeeded():void
		{
			expNeeded = Math.ceil(30 + Math.pow(1.5,lvl) + Math.random()*50);
		}
	}
}